package com.example.fw;

import java.util.List;
import com.example.tests.GroupData;
import com.example.utils.SortedListOf;

public class ApplicationModelGroups {
	
	private SortedListOf<GroupData> groups;
	
	public SortedListOf<GroupData> getGroups() {
		return groups;
	}
	
	public void setGroups(List<GroupData> groups) {
		this.groups = new SortedListOf<GroupData>(groups);
	}

	public ApplicationModelGroups addGroup(GroupData group) {
		groups.add(group);
	  return this;
  }

	public ApplicationModelGroups removeGroup(int index) {
		groups.remove(index);
	  return this;
  }

}
